import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

import iframe from '../views/iframe.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView,
	meta: {
		title: '终端首页',
  }
  },{
	  path:'/iframe',
	  name:'iframe',
	  component: iframe,
	  meta: {
	  	title: 'iframe标签的使用',
	  }
  }
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
